<!--
PAGE DOCUMENTATION:
==================
This page is were the user is redirected if an error occured that justifies stopping the
natural process of the application.

Parameters that can be sent to this page:
----------------------------------------
action - specifies the action in which an error occured.
		Values: play, delete, invite, send.

-->

<?php
	
	$failedAction = $_REQUEST['action'];
	echo "<fb:error>
		<fb:message>Our bad...</fb:message>
		An error has occured.</br>";
	if (!strcmp($failedAction,"play")) {
		echo "We cannot play any messages right now.</br>";
	} else if (!strcmp($failedAction,"delete")) {
		echo "We cannot delete any messages right now.</br>";
	} elseif (!strcmp($failedAction,"invite")) {
		echo "We cannot invite your friends right now.</br>";
	} else {
		echo "We cannot send any messages right now.</br>";
	}
	echo "
		We apologize for the inconvenience. Please try again later.</br>
		If this problem repeats itself please let us know!</br>
		You can do any of the following:</br>
		<a href=\"index.php\"> Go home</a> or 
		<a href=\"sendMessage.php\"> Send a message </a> or 
		<a href=\"getMessages.php\"> Hear messages from my friends </a> or
		<a href=\"http://www.facebook.com/index.php\"> I want to ge back to my profile </a></br>
		(you can also make us a cup of coffee. thanks)
		</fb:error>";
?>
</br>
<font size="3">
This application participates in Unicell's contest. <a href="http://www.liveface.co.il/%D7%AA%D7%97%D7%A8%D7%95%D7%AA-%D7%90%D7%A4%D7%9C%D7%99%D7%A7%D7%A6%D7%99%D7%95%D7%AA-%D7%A4%D7%99%D7%99%D7%A1%D7%91%D7%95%D7%A7/apps/" > For rating and other applications. </a>
</font>
</html>